/*
 * XML Type:  ClosureOption
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.ClosureOption
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04;


/**
 * An XML ClosureOption(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public interface ClosureOption extends net.ofx.types.x2003.x04.AbstractInvestmentTransaction
{
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)schema.system.s3A74FF4CC3627C5B0D40068015746F8A.TypeSystemHolder.typeSystem.resolveHandle("closureoption3e84type");
    
    /**
     * Gets the "SECID" element
     */
    net.ofx.types.x2003.x04.SecurityId getSECID();
    
    /**
     * Sets the "SECID" element
     */
    void setSECID(net.ofx.types.x2003.x04.SecurityId secid);
    
    /**
     * Appends and returns a new empty "SECID" element
     */
    net.ofx.types.x2003.x04.SecurityId addNewSECID();
    
    /**
     * Gets the "OPTACTION" element
     */
    net.ofx.types.x2003.x04.OptionActionEnum.Enum getOPTACTION();
    
    /**
     * Gets (as xml) the "OPTACTION" element
     */
    net.ofx.types.x2003.x04.OptionActionEnum xgetOPTACTION();
    
    /**
     * Sets the "OPTACTION" element
     */
    void setOPTACTION(net.ofx.types.x2003.x04.OptionActionEnum.Enum optaction);
    
    /**
     * Sets (as xml) the "OPTACTION" element
     */
    void xsetOPTACTION(net.ofx.types.x2003.x04.OptionActionEnum optaction);
    
    /**
     * Gets the "UNITS" element
     */
    java.lang.String getUNITS();
    
    /**
     * Gets (as xml) the "UNITS" element
     */
    net.ofx.types.x2003.x04.QuantityType xgetUNITS();
    
    /**
     * Sets the "UNITS" element
     */
    void setUNITS(java.lang.String units);
    
    /**
     * Sets (as xml) the "UNITS" element
     */
    void xsetUNITS(net.ofx.types.x2003.x04.QuantityType units);
    
    /**
     * Gets the "SHPERCTRCT" element
     */
    java.lang.String getSHPERCTRCT();
    
    /**
     * Gets (as xml) the "SHPERCTRCT" element
     */
    net.ofx.types.x2003.x04.SharesPerType xgetSHPERCTRCT();
    
    /**
     * Sets the "SHPERCTRCT" element
     */
    void setSHPERCTRCT(java.lang.String shperctrct);
    
    /**
     * Sets (as xml) the "SHPERCTRCT" element
     */
    void xsetSHPERCTRCT(net.ofx.types.x2003.x04.SharesPerType shperctrct);
    
    /**
     * Gets the "SUBACCTSEC" element
     */
    net.ofx.types.x2003.x04.SubAccountEnum.Enum getSUBACCTSEC();
    
    /**
     * Gets (as xml) the "SUBACCTSEC" element
     */
    net.ofx.types.x2003.x04.SubAccountEnum xgetSUBACCTSEC();
    
    /**
     * Sets the "SUBACCTSEC" element
     */
    void setSUBACCTSEC(net.ofx.types.x2003.x04.SubAccountEnum.Enum subacctsec);
    
    /**
     * Sets (as xml) the "SUBACCTSEC" element
     */
    void xsetSUBACCTSEC(net.ofx.types.x2003.x04.SubAccountEnum subacctsec);
    
    /**
     * Gets the "RELFITID" element
     */
    java.lang.String getRELFITID();
    
    /**
     * Gets (as xml) the "RELFITID" element
     */
    net.ofx.types.x2003.x04.FinancialInstitutionTransactionIdType xgetRELFITID();
    
    /**
     * True if has "RELFITID" element
     */
    boolean isSetRELFITID();
    
    /**
     * Sets the "RELFITID" element
     */
    void setRELFITID(java.lang.String relfitid);
    
    /**
     * Sets (as xml) the "RELFITID" element
     */
    void xsetRELFITID(net.ofx.types.x2003.x04.FinancialInstitutionTransactionIdType relfitid);
    
    /**
     * Unsets the "RELFITID" element
     */
    void unsetRELFITID();
    
    /**
     * Gets the "GAIN" element
     */
    java.lang.String getGAIN();
    
    /**
     * Gets (as xml) the "GAIN" element
     */
    net.ofx.types.x2003.x04.AmountType xgetGAIN();
    
    /**
     * True if has "GAIN" element
     */
    boolean isSetGAIN();
    
    /**
     * Sets the "GAIN" element
     */
    void setGAIN(java.lang.String gain);
    
    /**
     * Sets (as xml) the "GAIN" element
     */
    void xsetGAIN(net.ofx.types.x2003.x04.AmountType gain);
    
    /**
     * Unsets the "GAIN" element
     */
    void unsetGAIN();
    
    /**
     * A factory class with static methods for creating instances
     * of this type.
     */
    
    public static final class Factory
    {
        public static net.ofx.types.x2003.x04.ClosureOption newInstance() {
          return (net.ofx.types.x2003.x04.ClosureOption) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static net.ofx.types.x2003.x04.ClosureOption newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (net.ofx.types.x2003.x04.ClosureOption) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
        
        public static net.ofx.types.x2003.x04.ClosureOption parse(java.lang.String s) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.ClosureOption) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( s, type, null ); }
        
        public static net.ofx.types.x2003.x04.ClosureOption parse(java.lang.String s, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.ClosureOption) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( s, type, options ); }
        
        public static net.ofx.types.x2003.x04.ClosureOption parse(java.io.File f) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.ClosureOption) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( f, type, null ); }
        
        public static net.ofx.types.x2003.x04.ClosureOption parse(java.io.File f, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.ClosureOption) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( f, type, options ); }
        
        public static net.ofx.types.x2003.x04.ClosureOption parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.ClosureOption) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static net.ofx.types.x2003.x04.ClosureOption parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.ClosureOption) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static net.ofx.types.x2003.x04.ClosureOption parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.ClosureOption) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static net.ofx.types.x2003.x04.ClosureOption parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.ClosureOption) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
        
        public static net.ofx.types.x2003.x04.ClosureOption parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.ClosureOption) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static net.ofx.types.x2003.x04.ClosureOption parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.ClosureOption) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static net.ofx.types.x2003.x04.ClosureOption parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.ClosureOption) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static net.ofx.types.x2003.x04.ClosureOption parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.ClosureOption) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
        
        public static net.ofx.types.x2003.x04.ClosureOption parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (net.ofx.types.x2003.x04.ClosureOption) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        public static net.ofx.types.x2003.x04.ClosureOption parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (net.ofx.types.x2003.x04.ClosureOption) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
        
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
        
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
        
        private Factory() { } // No instance of this class allowed
    }
}
